<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <!-- 设置Footer组件在不同路由中是否展示（通过路由元信息meta设置） -->
    <Footer v-if="!$route.meta.isFooterShow"></Footer>
  </div>
</template>

<script>
import Header from "@comp/Header"
import Footer from "@comp/Footer"
import { mapActions } from "vuex"
export default {
  name: "App",
  components: {
    Header,
    Footer
  },
  mounted () {
    this.getCategory()
  },
  methods: {
    ...mapActions("category", ["getCategory"])
  }
}
</script>

<style>

</style>